package base.day21.MyHashSet2;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class MyListOf {
    public static void main(String[] args) {
        List<String> list=List.of("a","b","c","d");
        System.out.println(list);

        ArrayList<String> list2=new ArrayList<>(List.of("a","b","c","d"));
        System.out.println(list2);

        Set<String> s= Set.of("a","b","c","d");
        System.out.println(s);

        Map<String,String> map=Map.of("zhangsan","北京","lisi","上海","wangwu","广东");
        System.out.println(map);
    }
}
